package com.cloud.drore.eboss.supplier.service;

import com.cloud.drore.eboos.common.base.PagePo;
import com.cloud.drore.eboos.common.base.ResultMessage;
import com.cloud.drore.eboos.common.entity.dealer.*;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 浙江卓锐科技股份有限公司 版权所有  Copyright 2018<br>
 *
 * @Description: <br>
 * @Project: eboos <br>
 * @CreateDate: Created in 2018/2/2 11:18 <br>
 * @Author: <a href="575842778@qq.com">郑永涛</a>
 */
@FeignClient("eboss-dealer")
public interface IRefundOrderFeign {

    //供应商条件查询退订订单
    @PostMapping(value = "travelRefundOrder/supplierQueryRefundOrder")
    public ResultMessage<List<SupplierRefundOrderQueryVo>> supplierQueryRefundOrder(@RequestBody PagePo<SupplierRefundOrderQueryPo> pagePo);

    //运营商条件查询退订订单
    @PostMapping(value = "travelRefundOrder/operationQueryRefundOrder")
    public ResultMessage<List<OperationRefundOrderQueryVo>> operationQueryRefundOrder(@RequestBody PagePo<OperationRefundOrderQueryPo> pagePo);

    //通过id获取退订订单详细信息
    @GetMapping(value = "travelRefundOrder/otherGet/{productType}/{id}")
    public ResultMessage<OrderDetailVo> get(@PathVariable("id") Long id, @PathVariable("productType") String productType);

    //运营商退订订单页面加载初始化信息
    @GetMapping(value = "travelRefundOrder/operationInit")
    public ResultMessage<RefundOrderDicVo> operationInit();

    //供应商退订订单页面加载初始化信息
    @GetMapping(value = "travelRefundOrder/supplierInit")
    public ResultMessage<RefundOrderDicVo> supplierInit();

}